package controller

import (
	"github.com/gin-gonic/gin"
)

var Router router

type router struct{}

//func (r *router) InitApiRouter(router *gin.Engine) {
//	router.GET("/testapi", func(ctx *gin.Context) {
//		ctx.JSON(http.StatusOK, gin.H{
//			"msg":  "testapi success",
//			"data": nil,
//		})
//	})
//}

func (r *router) InitApiRouter(router *gin.Engine) {
	router.
		GET("/api/k8s/pods", Pod.GetPods)
}
